<?php
/**
 * Hesperos library for Zend Framework
 *
 * This script is protected by copyright. It's use, copying, modification
 * and distribution without written consent of the author is prohibited.
 *
 * @category    Hesperos
 * @package     Bootstrap
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt  GNU Lesser General Public
 * @version     1.0 $Id$
 * @link        http://code.google.com/p/hesperos/
 */

/**
 * Uruchomienie aplikacji
 *
 * @category    Hesperos
 * @package     Bootstrap
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @version     1.0 $Id$
 */
class Hesperos_Bootstrap_Default extends Zend_Application_Bootstrap_Bootstrap
{
    /**
     * Inicjacja l10n
     *
     * @return void
     */
    protected function _initL10n ()
    {
        $config = Hesperos_Config_Manager::getConfigPhp('l10n/l10n.supported.php');

        Hesperos_Locale_Manager::setDefaultLocale(new Zend_Locale($config->default));
        Hesperos_Locale_Manager::setDefaultLanguage($config->default);
        Hesperos_Locale_Manager::setSupportedLanguages($config->supported->toArray());
    }
}